package com.andyage.admin.action;

import java.io.IOException;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.andyage.admin.service.IAdwxUserService;
import com.andyage.admin.bean.AdwxuserBean;

@Controller
public class AdwxUserAction {
	@Resource
	private IAdwxUserService iadwxUserService;
	@RequestMapping("/queryAdwxUserByCondition")
	public void queryAdwxUserByCondition(AdwxuserBean adwxUserBean,HttpServletRequest request,HttpServletResponse response) {
		try {
			iadwxUserService.queryAdwxUserByCondition(adwxUserBean,request,response);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
/*	@RequestMapping("/insertAdwxUserInfo")
	public void insertAdwxUserInfo(AdwxuserBean adwxUserBean,HttpServletResponse response) {
		boolean result=iadwxUserService.insertAdwxUserInfo(adwxUserBean);
		JSONObject json=new JSONObject();
		if(result){
			json.accumulate("result", 1);
			json.accumulate("tips","新增成功");
		}else{
			json.accumulate("result", 0);
			json.accumulate("tips","新增失败");
		}
		response.setContentType("text/html;charset=utf-8");
		try {
			response.getWriter().print(json);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
*/}
